package pub.wkq.interfaces;

import java.util.Comparator;

/**
 * @author 王开琦
 */
public class StringLengthComparator implements Comparator<String> {

    @Override
    public int compare(String first, String second) {
        return first.length() - second.length();
    }
}
